
<?php if ($this->pageCount): ?>

    <div class="paginationControl">        
        <div class="scroller">
            <table>

                <tr>
                    <td>
                        <?php if (isset($this->previous)): ?>
                            <a class="pagin-item prev" href="<?php echo $this->url(array('page' => $this->previous)); ?>">&lt;&lt;</a> 
                        <?php else: ?>
                            <span class="pagin-item disabled prev">&lt;&lt;</span> 
                        <?php endif; ?>
                 
                        <?php if (isset($this->previous)): ?>
                            <a class="pagin-item prev" href="<?php echo $this->url(array('page' => $this->previous)); ?>">&lt;</a> 
                        <?php else: ?>
                            <span class="pagin-item disabled prev">&lt;</span> 
                        <?php endif; ?>
                 
                        <?php
                        $i = $this->pageCount;
                        foreach ($this->pagesInRange as $page):
                            ?>

                            <?php if ($page != $this->current): ?>
                                <a class="pagin-item" href="<?php echo $this->url(array('page' => $page)); ?>">
                                    <?php echo $i; ?>
                                </a> 
                            <?php else: ?>
                                <a class="pagin-item current" href="<?php echo $this->url(array('page' => $page)); ?>">
                                    <?php echo $i; ?>
                                </a> 
                            <?php endif; ?>

                            <?php
                            $i-=1;
                        endforeach;
                        ?>
                   
                        <?php if (isset($this->next)): ?>
                            <a class="pagin-item next" href="<?php echo $this->url(array('page' => $this->next)); ?>">&gt;</a>
                        <?php else: ?>
                            <span class="pagin-item disabled next">&gt;</span>
                        <?php endif; ?>
                    
                        <?php if (isset($this->next)): ?>
                            <a class="pagin-item next" href="<?php echo $this->url(array('page' => $this->next)); ?>">&gt;&gt;</a>
                        <?php else: ?>
                            <span class="pagin-item disabled next">&gt;&gt;</span>
                        <?php endif; ?>
                    </td>
                </tr>
            </table>
        </div>
    </div>

<?php endif; ?>
